package com.zt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zt.common.Result;
import com.zt.pojo.UserRoles;
import com.zt.service.UserRolesService;
import com.zt.mapper.UserRolesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author lenovo
* @description 针对表【user_roles】的数据库操作Service实现
* @createDate 2025-02-09 10:03:44
*/
@Service
public class UserRolesServiceImpl extends ServiceImpl<UserRolesMapper, UserRoles>
    implements UserRolesService{
    @Autowired
    private UserRolesMapper userRolesMapper;
    @Override
    public Result delete(Integer userId, Integer roleId) {
       Boolean delete=userRolesMapper.deleteUserRoles(userId,roleId);
        return delete?Result.OK():Result.ERROR();
    }
}




